package com.woniu.atms.service;

import com.github.pagehelper.PageInfo;
import com.woniu.atms.entity.G5Route;
import com.woniu.atms.entity.G5Site;

import java.util.List;

/**
  *@title RouteService
  *@author LHY
  *@createTime 2022/1/18/17:09
 **/
public interface RouteService {

    public G5Route findRouteById(int id);//按id查询路线

    public PageInfo<G5Route> findAllRoute(Integer pageNum);//查询所有路线

    public PageInfo<G5Route> findRouteByStatus(String status,Integer pageNum);//根据路线状态查询路线

    public boolean updateRoute(G5Route route);//更新路线状态和删除路线

    public List<G5Route> findRoutesByStarAndEndAddress(List<G5Site> startSites, List<G5Site> endSites);//根据起止点名称查询线路

    public boolean addRoute(G5Route route);//添加路线

    public G5Route findRouteByName(String name);//根据路线名查询
}
